package org.gourpg.model.permission;

/**
 * 权限配置实体
 */
public class PermissionDetail {
    /**
     * 权限ID，权限的主键
     */
    private Integer powerId;

    /**
     * 权限名称
     */
    private String powerName;

    /**
     * 权限类型（管理、维护、查看）字典：POWER_TYPE
     */
    private String powerType;

    /**
     * 权限说明
     */
    private String powerRemark;

    public PermissionDetail() {
    }

    public Integer getPowerId() {
        return this.powerId;
    }

    public String getPowerName() {
        return this.powerName;
    }

    public String getPowerType() {
        return this.powerType;
    }

    public String getPowerRemark() {
        return this.powerRemark;
    }

    public void setPowerId(Integer powerId) {
        this.powerId = powerId;
    }

    public void setPowerName(String powerName) {
        this.powerName = powerName;
    }

    public void setPowerType(String powerType) {
        this.powerType = powerType;
    }

    public void setPowerRemark(String powerRemark) {
        this.powerRemark = powerRemark;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof PermissionDetail)) return false;
        final PermissionDetail other = (PermissionDetail) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$powerId = this.getPowerId();
        final Object other$powerId = other.getPowerId();
        if (this$powerId == null ? other$powerId != null : !this$powerId.equals(other$powerId)) return false;
        final Object this$powerName = this.getPowerName();
        final Object other$powerName = other.getPowerName();
        if (this$powerName == null ? other$powerName != null : !this$powerName.equals(other$powerName)) return false;
        final Object this$powerType = this.getPowerType();
        final Object other$powerType = other.getPowerType();
        if (this$powerType == null ? other$powerType != null : !this$powerType.equals(other$powerType)) return false;
        final Object this$powerRemark = this.getPowerRemark();
        final Object other$powerRemark = other.getPowerRemark();
        if (this$powerRemark == null ? other$powerRemark != null : !this$powerRemark.equals(other$powerRemark))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof PermissionDetail;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $powerId = this.getPowerId();
        result = result * PRIME + ($powerId == null ? 43 : $powerId.hashCode());
        final Object $powerName = this.getPowerName();
        result = result * PRIME + ($powerName == null ? 43 : $powerName.hashCode());
        final Object $powerType = this.getPowerType();
        result = result * PRIME + ($powerType == null ? 43 : $powerType.hashCode());
        final Object $powerRemark = this.getPowerRemark();
        result = result * PRIME + ($powerRemark == null ? 43 : $powerRemark.hashCode());
        return result;
    }

    public String toString() {
        return "PermissionDetail(powerId=" + this.getPowerId() + ", powerName=" + this.getPowerName() + ", powerType=" + this.getPowerType() + ", powerRemark=" + this.getPowerRemark() + ")";
    }
}
